package com.dragon.modules.yuegou.entity.lot;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.modules.yuegou.enums.lot.MemberTicketGetType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 会员奖券信息表实体类<br>
 * 对应的表为：lot_member_ticket<br>
 * 
 * @author pbuilder generated
 * @date 2019-10-24 10:22:55
 * @company sgy
 * @version 2.0
 */
@TableName("lot_member_ticket")
@ApiModel(description = "会员奖券信息表")
public class MemberTicketEntity {

    /**  */
	protected String id;

    /** 会员ID */
	@ApiModelProperty("会员ID")
	protected String memberId;

    /** 活动ID */
	@ApiModelProperty("活动ID")
	protected String activityId;

    /** 当前会员参与ID */
	@ApiModelProperty("当前会员参与ID")
	protected String joinId;

    /** 分享着参与ID */
	@ApiModelProperty("分享着参与ID")
	protected String shareId;

    /** 券码 */
	@ApiModelProperty("券码")
	protected String ticketCode;

    /** 是否中奖 0-未中奖；1-已中奖 */
	@ApiModelProperty("是否中奖 0-未中奖；1-已中奖")
	protected Boolean isPrize;

    /** [枚举]获取类型：0-会员参加活动获取奖券-PARTICIPATE、1-会员分享活动获取奖券-SHARE */
	@ApiModelProperty("[枚举]获取类型：0-会员参加活动获取奖券-PARTICIPATE、1-会员分享活动获取奖券-SHARE")
	protected MemberTicketGetType getType;

    /** 创建人ID */
	@ApiModelProperty("创建人ID")
	protected String createdBy;

    /** 创建时间 */
	@ApiModelProperty("创建时间")
	protected LocalDateTime createdTime;

    /** 更新人ID */
	@ApiModelProperty("更新人ID")
	protected String modifiedBy;

    /** 更新时间 */
	@ApiModelProperty("更新时间")
	protected LocalDateTime modifiedTime;

	/**
	 * 构造一个空会员奖券信息表实体对象
	 */
	public MemberTicketEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个会员奖券信息表实体对象
	 * 
	 * @param other 其它对象
	 */
	public MemberTicketEntity(MemberTicketEntity other){
		super();
     	this.id = other.id;
     	this.memberId = other.memberId;
     	this.activityId = other.activityId;
     	this.joinId = other.joinId;
     	this.shareId = other.shareId;
     	this.ticketCode = other.ticketCode;
     	this.isPrize = other.isPrize;
     	this.getType = other.getType;
     	this.createdBy = other.createdBy;
     	this.createdTime = other.createdTime;
     	this.modifiedBy = other.modifiedBy;
     	this.modifiedTime = other.modifiedTime;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取会员ID
	 * 
	 * @return memberId 会员ID
	 */
	public String getMemberId() {
		return memberId;
	}
  	
	/**
	 * 设置会员ID
	 * 
	 * @param memberId 会员ID
	 */
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	/**
	 * 获取活动ID
	 * 
	 * @return activityId 活动ID
	 */
	public String getActivityId() {
		return activityId;
	}
  	
	/**
	 * 设置活动ID
	 * 
	 * @param activityId 活动ID
	 */
	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}

	/**
	 * 获取当前会员参与ID
	 * 
	 * @return joinId 当前会员参与ID
	 */
	public String getJoinId() {
		return joinId;
	}
  	
	/**
	 * 设置当前会员参与ID
	 * 
	 * @param joinId 当前会员参与ID
	 */
	public void setJoinId(String joinId) {
		this.joinId = joinId;
	}

	/**
	 * 获取分享着参与ID
	 * 
	 * @return shareId 分享着参与ID
	 */
	public String getShareId() {
		return shareId;
	}
  	
	/**
	 * 设置分享着参与ID
	 * 
	 * @param shareId 分享着参与ID
	 */
	public void setShareId(String shareId) {
		this.shareId = shareId;
	}

	/**
	 * 获取券码
	 * 
	 * @return ticketCode 券码
	 */
	public String getTicketCode() {
		return ticketCode;
	}
  	
	/**
	 * 设置券码
	 * 
	 * @param ticketCode 券码
	 */
	public void setTicketCode(String ticketCode) {
		this.ticketCode = ticketCode;
	}

	/**
	 * 获取是否中奖 0-未中奖；1-已中奖
	 * 
	 * @return isPrize 是否中奖 0-未中奖；1-已中奖
	 */
	public Boolean getIsPrize() {
		return isPrize;
	}
  	
	/**
	 * 设置是否中奖 0-未中奖；1-已中奖
	 * 
	 * @param isPrize 是否中奖 0-未中奖；1-已中奖
	 */
	public void setIsPrize(Boolean isPrize) {
		this.isPrize = isPrize;
	}

	/**
	 * 获取[枚举]获取类型：0-会员参加活动获取奖券-PARTICIPATE、1-会员分享活动获取奖券-SHARE
	 * 
	 * @return getType [枚举]获取类型：0-会员参加活动获取奖券-PARTICIPATE、1-会员分享活动获取奖券-SHARE
	 */
	public MemberTicketGetType getGetType() {
		return getType;
	}
  	
	/**
	 * 设置[枚举]获取类型：0-会员参加活动获取奖券-PARTICIPATE、1-会员分享活动获取奖券-SHARE
	 * 
	 * @param getType [枚举]获取类型：0-会员参加活动获取奖券-PARTICIPATE、1-会员分享活动获取奖券-SHARE
	 */
	public void setGetType(MemberTicketGetType getType) {
		this.getType = getType;
	}

	/**
	 * 获取创建人ID
	 * 
	 * @return createdBy 创建人ID
	 */
	public String getCreatedBy() {
		return createdBy;
	}
  	
	/**
	 * 设置创建人ID
	 * 
	 * @param createdBy 创建人ID
	 */
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	/**
	 * 获取创建时间
	 * 
	 * @return createdTime 创建时间
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

	/**
	 * 获取更新人ID
	 * 
	 * @return modifiedBy 更新人ID
	 */
	public String getModifiedBy() {
		return modifiedBy;
	}
  	
	/**
	 * 设置更新人ID
	 * 
	 * @param modifiedBy 更新人ID
	 */
	public void setModifiedBy(String modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	/**
	 * 获取更新时间
	 * 
	 * @return modifiedTime 更新时间
	 */
	public LocalDateTime getModifiedTime() {
		return modifiedTime;
	}
  	
	/**
	 * 设置更新时间
	 * 
	 * @param modifiedTime 更新时间
	 */
	public void setModifiedTime(LocalDateTime modifiedTime) {
		this.modifiedTime = modifiedTime;
	}

    public String toString() {
		return new StringBuilder().append("MemberTicketEntity{").
			append("id=").append(id).
			append(",memberId=").append(memberId).
			append(",activityId=").append(activityId).
			append(",joinId=").append(joinId).
			append(",shareId=").append(shareId).
			append(",ticketCode=").append(ticketCode).
			append(",isPrize=").append(isPrize).
			append(",getType=").append(getType).
			append(",createdBy=").append(createdBy).
			append(",createdTime=").append(createdTime).
			append(",modifiedBy=").append(modifiedBy).
			append(",modifiedTime=").append(modifiedTime).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public MemberTicketEntity copy() {
		return new MemberTicketEntity(this);
	}

    /**  */
	public static final String COL_ID = "id";

    /** 会员ID */
	public static final String COL_MEMBER_ID = "member_id";

    /** 活动ID */
	public static final String COL_ACTIVITY_ID = "activity_id";

    /** 当前会员参与ID */
	public static final String COL_JOIN_ID = "join_id";

    /** 分享着参与ID */
	public static final String COL_SHARE_ID = "share_id";

    /** 券码 */
	public static final String COL_TICKET_CODE = "ticket_code";

    /** 是否中奖 0-未中奖；1-已中奖 */
	public static final String COL_IS_PRIZE = "is_prize";

    /** [枚举]获取类型：0-会员参加活动获取奖券-PARTICIPATE、1-会员分享活动获取奖券-SHARE */
	public static final String COL_GET_TYPE = "get_type";

    /** 创建人ID */
	public static final String COL_CREATED_BY = "created_by";

    /** 创建时间 */
	public static final String COL_CREATED_TIME = "created_time";

    /** 更新人ID */
	public static final String COL_MODIFIED_BY = "modified_by";

    /** 更新时间 */
	public static final String COL_MODIFIED_TIME = "modified_time";
}
